package com.xiaofeng.Hello;

import java.util.Scanner;

public class Java6 {
    public static void main(String[] args) {
        //数组

        /*int arr[]=new int []{1,23,4};//完整格式
        //数组的访问 数组名.fori
       *//* for(int i=0;i<arr.length;i++) {
            System.out.printf("%d ",arr[i]);
        }*//*
        for (int i = 0; i < arr.length; i++) {
            System.out.printf("%d ",arr[i]);
        }*/
        Scanner sc =new Scanner(System.in);


        //动态初始化
       int []arr=new int[5];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=sc.nextInt();
        }
        int max=0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]>max){
                max=arr[i];
            }
        }
        System.out.println("max="+max);
    }
}
